package com.liangsui.mss.mq.dto;

import com.liangsui.mss.dto.BaseDto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;

import java.io.Serializable;

/**
 * BaseMqDto
 *
 * @author zhangjiawei
 * @email 1533167396@qq.com
 * @date 2022/12/8 17:35
 */
@Repository
@Data
@NoArgsConstructor
public abstract class BaseMqDto<T> implements Serializable {

    private static final long serialVersionUID = 1l;

    private Class<T> entityClass;

    private T data;

    private String messageId;

    public BaseMqDto(Class<T> entityClass, T data, String messageId){
        this.entityClass = entityClass;
        this.data = data;
        this.messageId = messageId;
    }
}
